package com.jk.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 优惠券实体类
 */
public class CouponInfo  implements Serializable {
    private static final long serialVersionUID = 2211399272505387871L;
    /* 优惠券Id**/
    private String couponId;
    /* 优惠券过期时间**/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date couponOverTime;
    /* 优惠券类型：打折和减少相应金额**/
    private Integer couponType;
    /* 优惠券数量**/
    private Integer couponCount;
    /* 优惠券优惠力度**/
    private Integer couponQuota;
    /* 优惠券最低消费**/
    private Integer couponMinAoc;
    /* 优惠券生成时间**/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date couponCreateTime;
    /* 优惠券使用状态**/
    private Integer couponStatus;
    /* 优惠券开始使用日期**/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date couponStartTime;
    /* 企业用户关联字段**/
    private String userId;

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId == null ? null : couponId.trim();
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCouponOverTime() {
        return couponOverTime;
    }

    public void setCouponOverTime(Date couponOverTime) {
        this.couponOverTime = couponOverTime;
    }

    public Integer getCouponType() {
        return couponType;
    }

    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    public Integer getCouponCount() {
        return couponCount;
    }

    public void setCouponCount(Integer couponCount) {
        this.couponCount = couponCount;
    }

    public Integer getCouponQuota() {
        return couponQuota;
    }

    public void setCouponQuota(Integer couponQuota) {
        this.couponQuota = couponQuota;
    }

    public Integer getCouponMinAoc() {
        return couponMinAoc;
    }

    public void setCouponMinAoc(Integer couponMinAoc) {
        this.couponMinAoc = couponMinAoc;
    }

    public Date getCouponCreateTime() {
        return couponCreateTime;
    }

    public void setCouponCreateTime(Date couponCreateTime) {
        this.couponCreateTime = couponCreateTime;
    }

    public Integer getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(Integer couponStatus) {
        this.couponStatus = couponStatus;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCouponStartTime() {
        return couponStartTime;
    }

    public void setCouponStartTime(Date couponStartTime) {
        this.couponStartTime = couponStartTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}